package com.s53.crm.controller;

import com.s53.crm.clue.ClueServiceApi;
import com.s53.crm.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ClueClientController {
    @Autowired
    private ClueServiceApi clueServiceApi;

    @GetMapping
    public Object listClue(User user, int current, int size) {
        return clueServiceApi.list(user, current, size);
    }
}
